package classconverstation.cscl.ist.psu.edu.client.services;

import java.util.ArrayList;

import classconverstation.cscl.ist.psu.edu.client.messengers.ClassCommonsMessage;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("commons")
public interface ClassCommonsService extends RemoteService {
	boolean postMessage(ClassCommonsMessage msg, int cid);

	int getCid(String course_name);

	ArrayList<ClassCommonsMessage> loadClassCommonsMsgs(int course_id);
	
	ArrayList<ClassCommonsMessage> loadClassCommonsMsgs(int course_id, long time);

	int updateLikeCount(int mid);

	boolean updatePinState(ClassCommonsMessage msg, int finalState);

}
